import axios from 'axios';

export default {
  login(params) {
    return axios.get('login', {params: params});
  },
<#list tables as table>
  // ${table.tableComment}
  create${table.className}(params) {
      return axios.post('create${table.className}', params);
  },
  update${table.className}(params) {
      return axios.put('update${table.className}', params);
  },
  delete${table.className}(id) {
  return axios.delete('delete${table.className}', {params: { id: id }});
  },
  page${table.className}(params) {
    return axios.post('page${table.className}', params);
  },
</#list>
}